<template>
	<view class="pageView">
		<u-navbar
			title="发票历史"
			:autoBack="true"
			leftIconColor="#333"
		>
		</u-navbar>
		<scroll-view class="listBlock" scroll-y="true">
			<view class="listItem" v-for="(item, index) in historyList" :key="index">
				<view class="listItem-content">
					<view>提交时间：</view>
					<view>{{ item.dataTime }}</view>
				</view>
				<view class="listItem-content" style="padding-top: 30rpx;">
					<view>开票金额：</view>
					<view>{{ item.price }}</view>
				</view>
				<view class="listItem-content" style="padding-top: 30rpx;">
					<view>发票类型：</view>
					<view>{{ item.type }}</view>
				</view>
				<u-divider style="margin: 30rpx 0px;"></u-divider>
				<view class="listItem-button">
					<button>下载</button>
				</view>
			</view>
		</scroll-view>
	</view>
</template>

<script>
	export default{
		data() {
			return {
				historyList: [
					{
						dataTime: '2024-08-24 15:26:11',
						price: '¥129',
						type: '企业'
					}
				]
			}
		}
	}
</script>

<style lang="less" scoped>
	.pageView{
		height: 100vh;
		background: #f4f4f4;
		.listBlock{
			margin-top: 174rpx;
			padding: 0px 32rpx;
			height: 80vh;
			.listItem{
				margin-top: 24rpx;
				padding: 32rpx;
				width: 622rpx;
				height: 304rpx;
				background: #fff;
				border-radius: 16rpx;
				&-content{
					display: flex;
					align-items: center;
					font-family: PingFang SC, PingFang SC;
					font-weight: 400;
					font-size: 28rpx;
					color: #333333;
				}
				&-button{
					display: flex;
					justify-content: flex-end;
					button{
						width: 128rpx;
						height: 52rpx;
						background: linear-gradient( 270deg, #0165FB 0%, #7AA7EB 100%);
						border-radius: 32rpx 32rpx 32rpx 32rpx;
						font-family: Alibaba PuHuiTi 2.0, Alibaba PuHuiTi 20;
						font-weight: normal;
						font-size: 24rpx;
						color: #FFFFFF;
						display: flex;
						align-items: center;
						justify-content: center;
						margin: 0;
					}
				}
			}
		}
	}
</style>